﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MockupDesigner.AppItems.Commands
{
    public class RedoCommand : ICommand
    {
        public CommandType CommandType
        {
            get { return CommandType.NonDisturbing; }
        }

        public void Execute(object target, params object[] parameters)
        {
            if (!(target is CommandProcessor))
            {
                throw new InvalidCastException("The target must be a CommandProcessor");
            }
            ((CommandProcessor)target).Redo();
        }


        public void Redo()
        {
            // Nothing to do
        }
        public void Undo()
        {
            // Nothing to do
        }
    }
}
